home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
net
/
amitcp2_x_gcc.lha
/
RCS.RCSfiles
/
printfault.c,v
< prev
next >
Wrap
Text File
|
1994-01-12
|
2KB
|
144 lines
head 1.5;
access;
symbols;
locks
jasegler:1.5; strict;
comment @ * @;
1.5
date 94.01.12.18.36.09; author jasegler; state Exp;
branches;
next 1.4;
1.4
date 94.01.12.18.24.41; author jasegler; state Exp;
branches;
next 1.3;
1.3
date 94.01.11.20.01.56; author jasegler; state Exp;
branches;
next 1.2;
1.2
date 94.01.11.19.24.20; author jasegler; state Exp;
branches;
next 1.1;
1.1
date 94.01.11.19.22.11; author jasegler; state Exp;
branches;
next ;
desc
@@
1.5
log
@*** empty log message ***
@
text
@char RCS_ID_PRINTFAULT_C[] = "$Id: printfault.c,v 1.4 1994/01/12 18:24:41 jasegler Exp jasegler $";
/*
* printfault.c --- Print a socket error message (DOS)
*
* Author: ppessi <Pekka.Pessi@@hut.fi>
*
* Copyright © 1993 AmiTCP/IP Group, <amitcp-group@@hut.fi>
* Helsinki University of Technology, Finland.
* All rights reserved.
*
* Created : Sat Mar 20 02:10:14 1993 ppessi
* Last modified: Fri Jun 4 02:05:44 1993 ppessi
*/
#include <errno.h>
#include <exec/execbase.h>
extern struct ExecBase *SysBase;
#include <dos/dos.h>
#include <dos/dosextens.h>
#if __SASC
#include <proto/dos.h>
#elif __GNUC__
#include <clib/dos_protos.h>
#endif
void
PrintNetFault (LONG code, const UBYTE * banner)
{
struct Process *p = (struct Process *) SysBase->ThisTask;
BPTR Stderr = p->pr_CES ? p->pr_CES : p->pr_COS;
FPuts (Stderr, (UBYTE *) banner);
FPuts (Stderr, ": ");
if (code < __sys_nerr)
banner = (UBYTE *) __sys_errlist[code];
else
banner = (UBYTE *) __sys_errlist[0];
FPuts (Stderr, (UBYTE *) banner);
FPuts (Stderr, "\n");
Flush (Stderr);
}
@
1.4
log
@*** empty log message ***
@
text
@d1 1
a1 1
char RCS_ID_C[] = "$Id: printfault.c,v 1.3 1994/01/11 20:01:56 jasegler Exp jasegler $";
@
1.3
log
@*** empty log message ***
@
text
@d1 1
a1 1
char RCS_ID_C[] = "$Id: printfault.c,v 1.2 1994/01/11 19:24:20 jasegler Exp jasegler $";
a26 2
/* Assuming gona use -lamy anyway */
/* #include <inline/dos.h> */
@
1.2
log
@/
@
text
@d1 1
a1 1
char RCS_ID_C[] = "$Id: printfault.c,v 1.1 1994/01/11 19:22:11 jasegler Exp jasegler $";
d37 1
a37 1
FPuts (Stderr, banner);
d45 1
a45 1
FPuts (Stderr, banner);
@
1.1
log
@Initial revision
@
text
@d1 1
a1 1
RCS_ID_C = "$Id: printfault.c,v 1.3 1993/06/03 23:27:19 ppessi Exp $";
@